package jdwl.hrmgrsys.pojo.core;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import jdwl.hrmgrsys.pojo.Enterprise;

/**
 * 参数类型描述
 * @author Huangdian
 *
 */
@Entity
@Table(name="para_type")

public class ParaType {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name="id")
	private int id;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public Enterprise getEnterprise() {
		return enterprise;
	}
	public void setEnterprise(Enterprise enterprise) {
		this.enterprise = enterprise;
	}
	private String desc;//类型描述
	private String code;//编码
	@ManyToOne(cascade=CascadeType.PERSIST,targetEntity=Enterprise.class,fetch=FetchType.LAZY)
	private Enterprise enterprise;
}
